#pragma once

#include <Windows.h>
#include <gl\GL.h>
#include <gl\GLU.h>

#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "opengl32.lib")

namespace HapticPuppy {

public ref class ChmDisplay: public System::Windows::Forms::NativeWindow 
{
private:
	HDC hdc;
	HGLRC hglrc;

protected:
	GLint MySetPixelFormat(HDC);								// set the appropriate pixel format

public:
	ChmDisplay(System::Windows::Forms::Panel ^);
	~ChmDisplay(System::Void);

	virtual System::Void Render(System::Void);					// render the display scene
	virtual System::Void ReSizeGLScene(GLsizei, GLsizei);		// resize the window and the glViewport
	System::Void SwapOpenGLBuffers(System::Void);				// swap buffers

};

}